<?xml version="1.0" encoding="UTF-8"?>
<!-- 
    Document   : S3BucketManage
    Created on : Sep 1, 2008, 1:09:45 PM
    Author     : Sean ODell
-->
<jsp:root version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:webuijsf="http://www.sun.com/webui/webuijsf">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <webuijsf:page id="page1">
            <webuijsf:html id="html1">
                <webuijsf:head id="head1" title="AWS Manager - S3 Objects">
                    <webuijsf:link id="link1" url="/resources/stylesheet.css"/>
                    <webuijsf:script id="script1" url="/S3CockpitWindow.js"/>
                </webuijsf:head>
                <webuijsf:body id="body1" style="-rave-layout: grid">
                    <webuijsf:form id="form1">
                        <div style="left: 0px; top: 0px; position: absolute; width: 100%">
                            <jsp:directive.include file="AWSManagerHeader.jspf"/>
                        </div>
                        <webuijsf:panelLayout id="layoutPanel1" panelLayout="flow" style="padding: 5px 4px 4px 4px; top: 74px; position: absolute; width: 100%">
                            <webuijsf:table augmentTitle="false" binding="#{S3BucketManage.table_S3Objects}" clearSortButton="true"
                                deselectMultipleButton="true" id="table_S3Objects" paginateButton="true" paginationControls="true" selectMultipleButton="true"
                                sortPanelToggleButton="true" title="S3 Objects" width="400">
                                <f:facet name="actionsTop">
                                    <webuijsf:panelGroup id="gp_S3ObjectActions">
                                        <webuijsf:label id="label1" style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Actions: "/>
                                        <webuijsf:button actionExpression="#{S3BucketManage.refreshView_S3Objects_action}" id="btn_RefreshS3Objects"
                                            imageURL="/resources/images/refresh.png" style="padding-left: 2px; padding-right: 2px; vertical-align: middle"
                                            text="Refresh" toolTip="Refresh"/>
                                        <webuijsf:button actionExpression="#{S3BucketManage.btn_S3ObjectAdd_action}" id="btn_S3ObjectAdd"
                                            imageURL="/resources/images/s3_object_add.png" rendered="false"
                                            style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Add Object" toolTip="Add Object"/>
                                        <webuijsf:button actionExpression="#{S3BucketManage.s3ObjectDeleteBtn_action}" id="btn_S3ObjectDelete"
                                            imageURL="/resources/images/s3_object_delete.png"
                                            style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Delete Object" toolTip="Delete Object"/>
                                        <webuijsf:button actionExpression="#{S3BucketManage.btn_S3Cockpit_action}" id="btn_S3Cockpit"
                                            imageURL="/resources/images/s3_cockpit.png" onClick="s3CockpitWindow()"
                                            style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="S3 Cockpit" toolTip="Launch S3 Cockpit"/>
                                        <webuijsf:button actionExpression="#{S3BucketManage.returnBtn_action}" id="btn_ExitToS3Buckets"
                                            imageURL="/resources/images/exit.png" style="padding-left: 2px; padding-right: 2px; vertical-align: middle"
                                            text="Return" toolTip="Return to S3 Buckets"/>
                                        <webuijsf:label id="l_Filters" style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Filters: "/>
                                        <webuijsf:label id="l_ObjectName" style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Object Name:"/>
                                        <webuijsf:textField binding="#{S3BucketManage.tf_ObjectName}" id="tf_ObjectName"
                                            style="padding-left: 2px; padding-right: 2px; vertical-align: middle" toolTip="RegEx can be used"/>
                                        <webuijsf:button actionExpression="#{S3BucketManage.flterTable_Objects_action}" id="btn_ApplyFiltersS3Objects"
                                            imageURL="/resources/images/filter_check.png" style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Apply Filters"/>
                                        <webuijsf:button actionExpression="#{S3BucketManage.flterTable_Images_reset}" id="btn_ResetFiltersS3Objects"
                                            imageURL="/resources/images/filter_delete.png" style="padding-left: 2px; padding-right: 2px; vertical-align: middle" text="Reset Filters"/>
                                    </webuijsf:panelGroup>
                                </f:facet>
                                <webuijsf:tableRowGroup binding="#{S3BucketManage.trg_S3Objects}" id="trg_S3Objects" rows="20"
                                    selected="#{SessionBean1.selectedState}" sourceData="#{SessionBean1.s3StorageObjectDataProvider}" sourceVar="currentRow">
                                    <webuijsf:tableColumn id="trg_S3ObjectsSelectionColumn"
                                        onClick="setTimeout(function(){document.getElementById('form1:layoutPanel1:table_S3Objects').initAllRows()}, 0);" selectId="trg_S3ObjectsSelectionChild">
                                        <webuijsf:checkbox id="trg_S3ObjectsSelectionChild" selected="#{SessionBean1.selected}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Bucket Name" id="tableColumn4" noWrap="true" sort="bucketname">
                                        <webuijsf:staticText id="staticText4" text="#{currentRow.value['bucketname']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Object Name" id="tableColumn1" noWrap="true" sort="name">
                                        <webuijsf:staticText id="staticText1" text="#{currentRow.value['name']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn align="right" headerText="Size" id="tableColumn2" noWrap="true" sort="contentLength">
                                        <webuijsf:staticText id="staticText2" text="#{currentRow.value['contentLength']}"/>
                                    </webuijsf:tableColumn>
                                    <webuijsf:tableColumn headerText="Last Modified" id="tableColumn3" noWrap="true" sort="lastModifiedDate">
                                        <webuijsf:staticText id="staticText3" text="#{currentRow.value['lastModifiedDate']}"/>
                                    </webuijsf:tableColumn>
                                </webuijsf:tableRowGroup>
                            </webuijsf:table>
                        </webuijsf:panelLayout>
                    </webuijsf:form>
                </webuijsf:body>
            </webuijsf:html>
        </webuijsf:page>
    </f:view>
</jsp:root>
